import 'package:distribution_mall_flutter/pages/address/address_search/domain/address_search_entity.dart';
import 'package:riverpod_annotation/riverpod_annotation.dart';

part 'search_address_provider.g.dart';

@riverpod
class SearchAddress extends _$SearchAddress {
  @override
  List<AddressSearchBody>? build() {
    return null;
  }

  void setNewData(List<AddressSearchBody>? data) {
    state = data;
  }
}

@riverpod
class SearchAddressIsLoading extends _$SearchAddressIsLoading {
  @override
  bool build() {
    return false;
  }

  void setNewData(bool data) {
    state = data;
  }
}
